import request from '@/utils/request'

export function getAll(data) {
    return request({
      url:'/receipt/list',
      method: 'post',
      data
    }) 
}

export function deleteById(params) {
    console.log("this is api ",params)
    return request({
      url:'/receipt/delete',
      method: 'get',
      params
    }) 
}

export function deleteByIds(data) {
    return request({
      url:'/receipt/deletebatch',
      method: 'post',
      data
    }) 
}

export function findAll(data) {
    return request({
      url:'/salesOrder/findAll',
      method: 'post',
      data
    }) 
}
export function getTyperList(data) {
    return request({
      url:'/initValue/pm/list',
      method: 'post',
      data
    }) 
}

export function getEidOptions(data) {
    return request({
      url:'/initValue/emp/list',
      method: 'post',
      data
    }) 
}
export function updateFinishFlag(params){
  return request({
    url:'/receipt/updateFinishFlag',
    method: 'get',
    params
  })
}